package org.hhchat.leetcode.math;

/**
 * Created by HMH on 2017/3/29.
 */

/**
 * from discuss
 */
public class code168 {

    public String convertToTitle(int n) {
        return n == 0 ? "" : convertToTitle(--n / 26) + (char)('A' + (n % 26));
    }
    public static void main(String[] args){
        code168 code168 = new code168();
        System.out.println(code168.convertToTitle(1));
    }

}